import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        StringBuffer sb = new StringBuffer();
        sb.append(num % 2);
        while((num/=2) > 0) {
            sb.insert(0, num % 2);
        }
        System.out.println(sb);

    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        fun(num);

        //write your code here......
    }
    public static void fun(int tar) {
        int temb = tar / 2;
        int temp = tar % 2;
        if(temb >= 1){
            fun(temb);
        }
        System.out.print(temp);
    }
}